<template>
  <div></div>
</template>
<script lang="tsx">
import { defineComponent, type PropType } from "vue";
import type { AAA } from "./interface";
export default defineComponent({
  name: "ComponentByOption",
  props: {
    msg: {
      type: String,
      required: true,
    },
    aaa: {
      type: Object as PropType<AAA>,
      required: false,
    },
  },
  emits: { click: (e: MouseEvent) => {} },
  methods: {
    func1(e: MouseEvent) {
      this.$emit("click", e);
    },
  },
  render() {
    return (
      <div>
        {this.msg}
        {this.aaa}
      </div>
    );
  },
});
</script>
